package com.nw.dsl4j.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Used to deteremine the cardinality of the field. 
 * for collection or map, use OneOrMore or ZeroOrMore
 * for simple object references, use One, ZeroOrOne
 * @author elik
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Cardinality {
	public CardinalityType cardinalityType() default CardinalityType.ZeroOrMore;
}
